package day3.Exer;

public class Degreeclass {
    String name;
    int num;
    String[] student=new String[num];
    String headteacher;
    String date;
    public void add(String stname){
        for(int i=0;i<student.length;i++){
            if(student[i]==null){
                student[i]=stname;
                return;
            }
        }
    }
    public void showinfo(){
        System.out.println("班级名称"+name+",班主任"+headteacher+",开班日期"+date+"，班级人数"+num);
    }

}
